<?php
include('core/init.inc.php');

// get the information from the database
$docent_info = fetch_docent_info($_GET['uid']);

?>

<!DOCTYPE hmtl public "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" contend="text/html; charset=utf-8" />
		<title><?php echo $docent_info['username']; ?>'s Profile</title>
	</head>
	<body>
		<div>
			<?php 
               if($docent_info === false){
                    echo 'De docent bestaat niet.';
                }else {
            ?>
			  <h1><?php echo $docent_info['firstname'], ' ' , $docent_info ['lastname']; ?></h1>
              <img src="<?php echo $docent_info['afbeelding'];?>" alt="afbeelding" />
			  
              <p>Username:  <?php   echo $docent_info['username']; ?> </p>
			  <p>Gender:    <?php   echo ($docent_info['gender'] == 1) ? 'Male' : 'Female'; ?></p>
			  <p>Email:     <?php   echo $docent_info['email']; ?></p>
			  <p>Location:  <?php   echo $docent_info['location']; ?></p>
			  <p>About      <?php   echo $docent_info['about']; ?></p>
		      <?php 
           }
		?>
		</div>
	</body>
</html>